Fixed restarting and some bugs, changed the gui.