Added model for branch.

Encapsulated how the branch is build from an Element.
Branch is now built from Element instead of String.