added constrained fitting to the fitCurves file, adjusted pamCPI accordingly, added plotting routines