Add class name variable expansion

- Parse and store class name
- Inheritance and multiple inheritance are now correctly handled.