move declarations() up
fix comments within rulesets. Closes #30