Remove redundant code
Use struct format 'Q' to read/write 64bit integers
Simplify date parsing
Simplify mac_epoch_diff
Remove unused data