Implemented binary format reading and writing
Corrected small bug with unit time conversion when reading from snapshot