Added capability to read packets with partial body lengths

Need to add to decryption and maybe encryption
Started working on compression algorithms. No promises.
Modified read_packet function to set format as well