Fixes compression as per spec 05 (not finished)
Fixes as per chris review.