fixed sam to bam conversion
made the parameters actually usable