Fixed endianness issue reported by Francois Gervais
Merge pull request #12 from MichelStam/endianfix

Fixed endianness issue reported by Francois Gervais