adding an element for a namespace-registry class, with comments