Add new statistic interface to library and move old to illuminatis rewrite