Added BB.SetReady(val) method to set the ready state in a module, modified examples to set the ready flag as True.