Improve the readme.
Eliminate globals
Inline duplicateResources
Refactor to more functional style
Rename processing to process
Add doProcess partial
Merge pull request #2 from myfreeweb/master

Some refactoring