Add writing output file for bzip2 decompression and add missing comments