add a check for the error during decompression test
speed up decompression
restructure compression
rename variables
rename variables