added compress and decompress support

Added support for compression and decompression. Also changed a
itv_wrapper function prototypes for ease of use.