Added some docstrings and made setup of server optional