Merge pull request #1 from saibotsivad/master

Init with tests!
Merge pull request #2 from saibotsivad/master

Adding a real license
Throw exception for non-hex chars

Resolves #3