Added a sequence analysis demo and did more argument checking for the BBC function.