Tweaked organization of curve fitting code. Added DIC info to output graph of fitted curve.