Made makeValid() method the same as the one in the hprcu provider code
'selection' -> 'selected' throughout (thought I'd already done this!)
Preparing to eliminate second pass through the XML in self.instances
Removed unneeded commented code