cleanup tabs/indents
added a switch for bzip2/gzip compression types