updated the rules.c so the rules are now really readable