Added support for gzip on write (enabled by default). Decompress on read has also been added. Also reverse compatible.

Removed pointless semicolons.