Fix bugs in example code in README.md
Merge pull request #2 from 20th/readme

Fix bugs in example code in README.md