getData: global return_arr

made return_arr global in errlog & sendback fxns. apparently, err log
hasn’t been storing error messages properly.