Document decode function.
Merge pull request #9 from tracid/master

Document decode function.