improved lookup of respondent info

use integer for id's if applicable
use like instead of = if needed
change order, add documentation