added functionality for getting commits from branches
removed console.log