fixed deprecated call to inc()
fixed hmm import
sort freqdist keys in corpus.doctest