add .gitignore, fix small warnings