build-rule now attaches the primaction to the act.
Added simple print support for rules.