Removed some old code. Simplified compression interface.
Optimized imports
Applied some code fixes proposed by intellij