More optimization of the resistance readout. Added line diagrams. Faulty multithreading removed. Added a todo list. Micro-optimized/minimized some code in the lib classes