made phaseprec more compact, fixed bug in figure saves