fixed the way memcpy works in construct_packet. It was using the size of the pointers instead of the size of the actual arrays.