implemented reading/writing words and half words, storing them in the byte array little endian style