add .gitignore and fix buildscript