added builder class
added constants
improved branching and tags fetching