Created basic decalibration code; started on maknig a history of calibration.