added entities. completed parser to output parse tree