changing calibration output to something more useful and backwards compatible with matlab