Updated example code in README.md. This fixes issue #570.
Merge pull request #585 from derdon/issue570

Updated example code in README.md. This fixes issue #570.