---Added diagnostic output. Rewrote fitting conditional statements.
Moved plotting routine for correlation function to the fit.py file.