support bzip2, add comments
handle malformed tarballs