Added endianness converters, unit tests.