Conversion of Variables to new class

Converted all global variables into a class with accessor functions to
standardize use.