Handle endianess in map format. Added MIT license to the project.