merging function and BWA index creation complete, index creation to be tested