Gui client

hej fixed guiclient handling. Changed initializing to main.