adding option to dump mean and median coverage to a file