WIP: refactoring, move (de)compression and datastructs to compression.h(cpp) files