Added final loging message and corrected a case bug

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