Commit config and main code for server and client