Improve the readme.
Eliminate globals
Inline duplicateResources
Refactor to more functional style
Rename processing to process
Add doProcess partial