renamed connect() to register(), moved wrapper registration to
register() method
fixed doc-comment