using this apps error messaging
making the script run even if a config file is not found
only log results of before and after commands if they have a value
renaming some variables for clarification