move code for generating sumstats in separate fun
rename file for consistency