added behaviors.
Added entity creation logic.