turned off checkstyle for a few lines
removed unused field
correctly closed streams when extracting a gzip archive