Fix example in README

The current hello world example in the README does not work.
I fixed it by having the writer wait for the `ready` event.