Added update func for server and documented it