Cleanup and bugfixes

The bot is now making mad karma!