To Grammar added methods for regularization and printing grammar rules.