Implemented mean curves and enhanced the scientificformat facility