Rename some attributes

HDSTYPE -> CLASS as this seems to be the general name for what
HDS thinks of as the type.

The structure attributes now include the word _STRUCTURE in them.