Update README.md

fixed .md formatting and added code snippets