Make corrections as per code review by wjwwood. Replaced non_zero check on _chunk_headers. Cleaned up redundant outer list when sorting for main_compression. Corrected whitespace around assignment operators.