added support for gzipped files. refs #39