More extensions to the statistic model framework
Fixed bugs, expanded statistics definition