implemented outlier clustering / various improvements on the way