Update README.md

Fix an error in the example code and a slight typo.