added write int unit tests, implemented writeUint24 and fixed readUint24 for endianness