Update packet class and bytearray class