Better gitignore and fix for warnings