figured out setResultsName correct usage
added first complete complex function, fixed issues in setResultsName