fixed glitch in defining the class for a physical item; fixed document() '.xml'