checkout branches
fix checkout behavior
docs for new api
Merge pull request #1 from Wayla/branches

[api] [doc] Pull from non-master branches