Support reading and writing TCS threshold. Added checkbox to short CE/RE for 2-electrode mode. Finishes #6.