Added option to treat variables as binary in Sidebar as req in #45

Selecting threshold hides if option is set to FALSE. The thresholdvalue resets to 0 at each change (to avoid possible bugs).