Updated segmentation with an option for on-robot segmentation, added documentation