corrected logic of 'be-inheritance' and updated some comments
Merge pull request #1076 from anitzkin/schemequestionrules

corrected logic of 'be-inheritance' and updated some comments