Minor reformatting in readme

This fixes the code example and also removes some trailing whitespace.
Merge pull request #5 from EvanHahn/readme_formatting_fix

Minor reformatting in readme