Re-organised Xscope functionality, so each thread can be instrumented, required altering thread I/F to accept motor_id