Initial commit
fixed wrong exit status check
Fixed wrong BAM output mode