add example of 'decode' to docs