Cleaned up SegregateChromatograms code, fixed misc bugs