Updates, fixes, new parameters for segmentation (choose to return last used threshold value <default: false> and choose to return data in binary form <default: true>)