Added byte serialization to CalibrationData.
Refactored file read/write.