process():  New function that contains the "orchestration" of the
	    actual work.

main():  Just handle the command line and filename determination,
	 calling process() to do the work.

These changes make this more import-friendly.
1 file changed