RF: further fixups of the outlier script
BF+TST : refactor outliers script with testing