changed commandline args to specify output dir and name