framer:  comply compression framing with rfc

A little bit of style formatting and test case changes.