added a client class an put the basic parts into it
Connector method for checking connection added