It looks like you didnt copy the code right.
Read
Here for a zip file with the codes, when you copy it from the web it sometimes messes up the alignment of the code.
You also might want to check
this out; Its how I use mine, much less work and works everytime
