Removed hardcoded variables, replacing them with command line arguments.
Don't want the log file to be included in the repo.