add .gitignore file
add missing return