You'd be unwise to try to design you own from scratch, in all likelihood. Probably better to go to one of the proprietary manufacturers, though BAF's a bit old hat now, and you can get a similar process footprint from deep activated sludge tanks.
There are a number of potential design problems...