added: sample usages, connect() and config()