fixed bug in main, client now sends correct data, added handle function in server (needs to be filled in)