added num_modes capability
changed how statistics are computed so they use skymap_stats