Added reject_outliers function and corrected docs