Corrections and added features: input checking and conversion, 1 stddev fit parameter errors for getfit;
added common functions for fits; iterated smoothing for sgolayfilt