Added Error Logging

Added error logging to each step of the update process so we can easily identify what code was executed and diagnose any errors.