implemented control for Agilent L7106C switches, fixed a few bugs in switch control, simplified code for switch chain handling