Added filter funtion.

The filter is added as args to --compress and --decompress