modified calibration to make it easy to save/load calibration setting.
Added basic recording code.