Added timing to wordcount.py and improved file output