Mostly fixes by Felix. one thread per keithley