moved all the parameter fitting into fit.hpp, now works with analytic method. makefile clean up.