Imporved some docstrings and comments in Grammar.py