generate BRD from code