cleans up question_values code and adds comments