Calibration class redesind and library build fix

Calibration class have been redesigned to remove XML input and make it accessible via Factory.
Main library build have been fixed.