cleanup bamstats summary and some other code [ci skip]