Refactor to remove BufferOverFlow exceptin and rename method readBytesAt
to readNumBytes