added more minors, added tools.py

30 more minors to go.
Created tools.py to consolidate some functions that help for rule
creation