fixes example code in README
Merge pull request #3 from danielmahon/master

fixes example code in README