Fix typos in README

Fix a few typos and add code blocks to references to the `compile` method.