Changed working directory back to original cwd. Tooled code with error messages.