refactor and update readme
update examples