Gui bug fixes, implemented multi-threading, added progress bar form