Create data and fit it

Can now generate random data and fit it. The generated parameters are
saved to a file and so are the parameters from the fitting.