Get input and output directories from commandline.
Change some variable names.