fixed several issues
now sequence gaps are decided upon linkage distance