Compression ratio

fixes #1