Addition of cal_module to provide a calibration tool and related features. Added the time2val function to the ba class. It has a bug now, but it will be useful for the calibration tool.