added first functional code to create branches and checkout commits