changed file path directory to /home/mlam/output and error messages go to /home/mlam/error