Added some console output telling what the bot is up to. Fixed a typo which resulted in a bug.