added test functions, other updates

added test functions for switching electrodes, enabling/disabling mux,
fixed muxHold function.