fixed bug in fit_wavefront function
more cleanup of aware main code. Make creation of save directories automatic and consistent.