Netcode Update - Message Deserialization

Changed message reading method to a safer version.
Added code to deserialize messages.