Some fixes for the example code in the doc.

The example code in the read me has syntax errors. This pull request cleans up the example code.