First working version of re-factored fitting program

We now have command line arguments to specify the optional arguments to
scipy.optimize.leastsq:

* ftol: Relative error desired in the sum of squares.
* xtol: Relative error desired in the approximate solution.
* maxfev: The maximum number of calls to the function.