Merge Split branch

Please check and merge the split branch into the dev branch. This includes the change in split step to use an iterative approach to reading the bam file rather than fetch approach.