Added smooth function and new thresholds
Updated thresholds
Added erode and dilate to remove noise
Reupdated thresholds once more
Cleanup threshold methods
Updated application threshold functions to enhance readability