Added Node class and nonterminal methods to parser