Fixed arguments for bam_stat.pl, changed prints to logger.