implemented new iheritance system
implemented first version of patterns in __check_inheritance
renamed examples to demo
min