lots of refactoring.
make analyze.py a separate program.
stub out merge.py and analyze.py w/o CLI params to be GUI version (get
 rid of *_CLI.py)