Update README.md

Added comments to code snippets.