Added a logfile directory. Updated hardcoded file paths to used environment variable to find correct directories.