add gitignore
refactor
update example