Chars, words, lines, sentences all ok. Script for sanitycheck added.
Some improvents after pylint and pep8 - but not all.