Input files and output directory is now set from command line arguments.