more files

split the client and the server into more files to better edit the code