Refactor Serialization and Deserialization

ByteArray for all packets