improved generated class numbering: user 00N style to makes the classes sorted in natural order.
+ some cleanup.