Bunch of stuff with rules

Added lot of things to do with contract rules