added comments to wordcount