fix typos/bad imports
added (slightly altered version of) scipy.optimize.leastsq into minimizer
moved satizky_golay code