Added source and header file for containing variables.
Sources now uses global variables with variable.h and .cpp