add .gitignore, build script, and main.cs cleanup