bug fixes, cleaned up code a bit, centralized settings to config.py, testing is through run.py