Implement boundary case checks, refactor flow control
Tidy comments
Implement function to retain lists of overlapping SNPs