Improved support for named classes.
Minor fix in PDSLabel to close file when done.