Added support for creating an entity with components