Change message headers to an array.
Switch from bitArray to octets.
Packet extraction.