improvment to stats, particularly calculating expected counts taking into account distribution of qual scores