Files have not been tested, but they do compile.
Modified input arguments to main. Last argument is the grammar.
Fixed indexing issues within grammar parser.
Fixed indexing issues within grammar parser.