commented helpers class
comments and making average_densities a typedef