rework allele frequencies module for greater flexibility