Adding ability for arbitrary named BAM files.  Changed variable name for clarity.