cleanups in gyro calibration code