Some cleaning of the code and addition of a thread to start the server + added the setup window