Port to latest API
Add .gitignore file