Update README.md

Updated some code examples to be correct.