added in gzip compression, tweaked formatting