Refactor "smart" compression and add documentation
Add documentation