added constants for changes in processing categories
modified category handling.  It had not been tied to element tags, and was hitting exceptions on stray nodes.  Also needed to handle multiple subjects