Updated README.md

Fixed some typos, modified some code examples
Merge pull request #3 from wardsng/patch-1

Fixes code errors, typos.