Basic network

Filled out parse packet as well as the network functions. Might be buggy.