Added compressor functionality

Added compressor object "compress".