Rewrote whole language model to be able to calculate well as well as receive precalculated values.