Add branch description in the API

Close #89
Simplify the code relating to branch descriptions