Added test for language model tagging.
Rewrote whole language model to be able to calculate well as well as receive precalculated values.