Variable cleanup

Placed all the previous global variables for settings under a single container.