Updating the readme to avoid undefined global variable if someone copies the example

issue #2
Merge pull request #3 from adregan/master

Updating the readme to avoid undefined global variable error if someone copies...