add more documentation to Decoder; add more examples.