Continued edits for sigma clippling. Still in testing.