Adding configuration file and refactoring functions

Bot identify is now included in bot.cfg. This avoids having to change the code and run into conflicts simply for changing the configuration. 

Refactored the code into more functions. Still all in one file and using Global variables so this needs more refactoring.