finished the API for network.h
Starting work on network layer
Adding comments to outline the algorithm. Code to follow.