Added command line compression support and small unit test #215