API version up to 31; add gitignore