Added support for converting BWA output to BAM and indexing and sorting the BAM file; added check for presence of FASTA index and creating it if needed