fixed several minor typos; added some comments

You had a bunch of minor typos in your code; the info in this video

http://www.youtube.com/watch?v=mLKQ4s8QB3s

might have helped you track 'em down... Basically, you need to print stuff out and look at it carefully :)