Add simple (naive) offset calibration procedure.

See the file doc/calibration/CALIBRATION.txt for details.