(in progress) write tests, some structural, API, error reporting improvements for the bind package