Implement libotapi-d swig library

and update docs to match.