Update README.md

shortened code snippets for brevity