fixing how it is checking if the file has been uploaded. Now looks at log file that is produced. Adding in more parameters to sub routine arguments