added writePad, and big endian reading and writing functions