fix problem reading bam files.
fix error when using onePlotPerGroup option
clean up