support for zlib compression and made data unpacking recognize 32 vs 64 bit encoding