Create network.h

Contains all the functions for the network i/o.