Added branch detector. Branches now shown in GUI and terminal.