fixed minor bugs in phasefit.cc and changed the output precision.