Added option to preselect branch based on the .selected attribute. Similiar as an expand option.