Fixed pipeline runtime issues, continued debugging. Really quick, still accurate!
Added documentation, made class standalone (doesn't inherit from ThresholdSegmentation anymore).