Updated the wordcount example and did some minor optimizations