Added JSON formatted output, --verbose now shows the number of branches found