rewrote bbc as seperate class, fixed errors.