Added final loging message and corrected a case bug

This gives a final message summing the script actions. More detail can be found in the logfile.