added option to compress or uncompress for command line