uncompression: use unsigned short for keyframe value
add zlib compression + quick fix for corrupted metadata