Moved fit function to model subdirectory.
Plot function now plots model simulations.