Added two new functions to detector allChildrenEnabled and
allChildrenDisabled
Tested and appears to be working in all cases