Calibration thomas lucia

fixed bugs in SDPreCal
added former dragon functions