Fixed #1: Implemented a regex to parse branches.