Fixed errors. Added decompressing.