Some changes to the byte-swapping.
Change some package stuff.
Use pragma pack instead of the PACKED attribute.