api: implemented add_instance.
api: implemented remove instance.
api: added unbind.