Added some documentation to bot.js.