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

issue #2