fixed phaseset and rephase so that phases are put in and set at all sites (changed from FORALLMYSITES to FORALLSITES)