Corrected parentheses on distf calls.

distf(float a, float b) = abs(a-b);

distf(...,...) is now passed two floats instead of a float and a bool.

Threshold reduced from 1.0 to 0.5