Added unit class. Added some unit type enums. Added non-const field accessor.