Added some docstrings, added port to config