More consistent error logging
Added some echo statements back in so that error messages would be logged in the error_log file as well as the script's std out.