Updated ToBytes for all packet types, renamed to match conventions