Added variables.h/.cpp and moved def_functions/variables from main.cpp to respective .h/.cpp files