Good progress on automatic calibration (issue #2)

* now saves calibration data to config.cfg