made easier interface for reading grammars and nicer printing of trees