Add compression_status option.
Fix typos.
Move buffer to header file.