added comments to bot.pl