Fixed the Matrix datatype bug I had earlier
minor tweaks
Working on finding objects from segmented image