update server.clj
added documentation for functions in server.clj