Removed all global variables
Fixed a directory changing issue when trying to switch profiles
Removed test files and test configurations