Encode/decode to/from references to readers
Merge pull request #2 from tedsta/master

Encode/decode to/from references to readers