code cleanup and docs.
centralize removing the input intervals that overlap exclude or
don't overlap include.