finished initial code for network message serialization/ de-serialization.