Fixed BYTE_MASK, added endianness note.