Major changes, fixes for motion analysis and segmentation. Work still in progress