bug fixes and improvements to writeGisFile
add .gitignore