add /src/.gitignore to ensure the directory is always created
update example to new callback interface