added async connect API, new structure of examples