fixed the little/big-endian issue
Merge pull request #1 from karaaie/feature/handle-little-big-endianess

fixed the little/big-endian issue