Split merge to dev

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.

Bugfix where no analysis file was not opened before writing no where there are lots of ignored regions.