check class
documentation
restructure stats.C