Readme typo fixes

The current README has two examples of code that did not work for me. The following commits change these examples to working code.