implemented decompression to file