add rules_free(); doc
add atom_sn()
add pr_*()
first cut at main driver