changed how to take unigram frequencies into account + other stuff
added support for insertion penalty (BIG HACK)