Improved thresholding function and some other small fixes
minor code cleanup
Restructured projet files
Fixed the sensorBin