fix a bug in mark duplicates
replace bam header; minor changes