updated example and added .gitignore