Multiple changes

- Refactoring, updates and minor optimizations in ECS.
- Added comment hrules to inl files.