move generated files to tmp directory; add .gitignore