Update to Parser.java

roughly 1/5 of the way done, just updating for now.  Also added the
Globals.java class which we will use instead of passing values through
the entire time