Updated Parts of The server and implemented a client class