Added output_dir flag.
Added defaults to config options.