Merge pull request #4 from jmosbech/master

Removed redundant code attribute
update version number
add license
Update readme.md
Update readme.md
Renaming name property (back to) code.

When trying to integrate the version 1.2 it became clear that we quite often end up comparing it to the errorCodes map, and in this case the "name" property is counter-intuitive.