- Significant refactoring of compress.cpp.
- Added error messages.
- Added I/O error checks.