water4: Edit goals; write top-level function, v1.

Next, I might work on get_base_rules.