Update example in README.md

The given example seems to be non-working.  The fixes were borrowed mostly from Morsel.jl code.