Save wordcount to file and update readme

Also updated some commments/docstrings