More cleaning
Add machine learning data acquiring for training
Implement thresholding parameter from MathLab analysis