some minor syntax and bug corrections
added check_analysis_can_run method call, and some comments
added and exported merge_bams method and subbed out validate sam_ref_fai method