new type/element for DiagnosticEvaluation
ResidualsType replaced with DataSetType

for Residuals and cleaned up