Document decode function.

Document the `decode` function implemented by @jpadilla via PR #3