Made a ton of changes to the rule table, parsing table, and in general
fixed a bunch of bugs pertaining to correct parsing. Also added a main
class for input arguments.