add another stats test
add extreme cases to stats tests
separate normalization from tokenization
add more docstrings
replace some uses of str with repr

Repr seems to make more sense when hashing (strives for unambiguity rather than readability) and also is faster on most primitive types.
Improve one test case