Update server.c client.c etc adding origin, functions