Added diff_threshold, fixes diff percentage values

Needs a drop down menu to modify the value