Add a bunch of docstrings in the inner functions in create_server