Composite generation + internal_data superclass + compilation + fix

Composite generation + internal_data superclass + compilation + fix