Update README.md

Fixing a few issues with the code snippets.