Added threading and a GUI.

GUI will be expanded into a stat-pumping mechanic, and the threading was nessicary for the GUI and output to work simultaneously.