implemented file saving
added a function for segmenting the object out of the whole image, added documentation for the function headers and properties