added comments to network.py