-added gzip file compression for writing and reading checkpoints