Added Application Class. Fixed Header Guards

Added the application class which contains all of the variables and
functions that were in main(). Removed leading underscores from header
guards.