Added separate demo.py. Changed rel to class attribute in Ruleset subclasses.