Changes for rules.
Moved rules to snip package.
Added a few acting functions.