log paramters and paths to txt file before running job