added speedup for vocabword counter for multithreading, a bit of documentation/cleanup