added example to docs
Merge readme example by Dominic Tarr.
Merge branch `dominictarr-master` into `master`.