Change decode signature, minor fixes, more documentation.
Merge pull request #6 from mdakin/master

Fixes to base64