add example program for bam output