integrated documentation of the network module into the code and enabled documentation of local functions