cleanups and fix paired read names for bam