reduced code in util.h
eliminate temporary file when reading training data
put alias stuff into its own class; unigram_probs_vector is replaced with unigram_probs, since it seems thread safe