Prints the range now.
Finished the encoding algorithm
Updated grammar.py's grammar() with some comments.