Text and Scanning update

Better scanning, and some word analysis.