Add outlier-removal helper function, add functions for settings email/token, add documentation