Fix endianess
Code refactored
Bump version