Command-W closes the window
GrammarTextFigureGenerator method name changed
Basic parsing functionality done