some small api changes

- add name and version number to api
- slightly more elegant nib dep require
- tests for what the api exposes