Update README.md

Reformatted and wrapped individual code snippets. Added comparison examples.