Modified httpserver class to take a network object and port as parameters.

Added docstrings to init.