Cleaned up more code and now working on making it so that range trees treat adjacent ranges as overlapping ranges.