add default options and add try..except for branches listing
use generate() for page writing
replace repo with branches list