Updates to the segmentation code
Update gitignore and add new file