Improved documentation for network.py