WIP: compression refactoring
WIP: compression refactoring, move decoding to compression.cpp