Added output directory and gunzip options