reads in calibration file & calibrates