clean up docs, fix duplicate license fields in package.json
refactored:

* works with any number of path segments (closes #2)
* recursively expands keys in nested objects (closes #3)