Added probability compensation.
Finished initialization of grammar.