reworked stats.py and trimmed words.py