Replaced epsgeo with epspar for parameter curve calculation, added debug function.