add connect function
add config file
modify README