Add GZIP support

Tidy up some style fixes and add support for GZIP as requested in #26