revert removal of docblock
removed debugging output
added method isExistingBranch($branch)
Merge branch 'new_methods'