Added grammar class to number game; started converting other examples to new format, incl. docstrings > comments.