Fixed some outlier detection NAN errors. Left debug statements in for the moment, since other errors still appear on occasion