I changed the 'comments' that are triple quoted to legitimate comments denoted by a #.
The triple quoted are strings that don't affect the code, but are still read by the interpreter
which slows us down.

Also changed code style in states line 115 to reduce the number of comparisons.