Updated README connect example to match new API