Automatically save calibration results

Fixes #41.