Finished the small segment grouping feature. Closes #19