created CALIBRATION.cpp to hold all of the calibration functions.
cleaned up the order of variables declaration in most of the files.