documentation, and adding conditional for if gzip is turned off in publish