improved: don't log useless lines in logfile
improved: errorhandling of update process
improved: refactoring