When you add fresh water the salinity, alk, PH, mag, calcium lowered and when you added salt your PH went off the roof and thus, shocked all your corals. What you should have done was to mixed the fresh water and the salt outside of the tank, bring it to temperature before adding it.