• changed names of global variables to reflect their global nature
• added #defines for cli flags