CLC now receives the right filenames for input files. Commands are also written to log file