Compressor fix, refactoring

-Compressor now works