Improved some code and added the start for the GUIs