dictionary error check

add comments and little code tweak for ReferenceList and ExceptionList
classes