refactor code to be a bit more readable
Add test for too large key
Fix this
Minor fixes
No need to free here
This is only available in later versions
Merge pull request #108 from mkoppanen/master

refactor code to be a bit more readable
Resolve merge conflict