Kb manipulation

-KB Manipulation classes
-Bug in MakeAverageModel