Proper handling of opened streams in LessonInput and LessonOutput, some renames in DomHandler