fixing stats calculation
Merge branch 'master' of https://github.com/matfed/CoAnSys
Merge branch 'master' of https://github.com/matfed/CoAnSys
Merge branch 'master' of https://github.com/matfed/CoAnSys
Merge branch 'master' of https://github.com/matfed/CoAnSys