Updated thresholding and various cleanup throughout
Various cleanup; updated thresholds; updated examples