Misc bugfixes, new information gain method.