Cleaned up code in compression.c