update README.md code samples
Merge pull request #29 from paullang/patch-1

update README.md code samples