compress and decompress work. Fails for files bigger than 1 << 16 bytes though