Added Main class to start gui and init connection