handle compile warnings and add .gitignore
handle compile warnings and add .gitignore