Bug fix: Replicates specified but no file set...

... will now not throw a null pointer exception. This solution should be regarded as a temporary one, as there really needs to be some better validation on the file in future.
Bug fix: s/g fails with null pointer exception

s/g tries to get intervals that are not there. Hopefully this conversion should fix this.