Added code to the GUI classes and made a thread (Still needs
2 more threads for QM)