Added Gui class; ThreadPool improved, now possible to use a single pool for the whole project