AttributeLength and refactoring

I'll probably change how the length is handled, and also add a Type to the Attribute/(Code).

I could probably move it to the Attribute instead of the AttributeCode, Or fix separate Classes for length/type. Time will tell!