Removed global variables, added them to class level variables.
Removed connection to config.txt and replaced with config.py.