added view options for header and bam output