started adding reading/writing functions for little endian