Update README.md

Added more examples, reformatted some code.