Fixed the list branches method

Also added in the option to pass in repository-name so you can fetch branches from various repositories