Fixed drawing to make it draw properly, added the cleaning of outliers