refactor, add tests, update readme.

Should now produce expected results on all tests.
there's no collaborators field either, but there is a `maintainers` field (plural): https://www.npmjs.org/doc/json.html#people-fields-author-contributors