Small refactoring, add .gitignore file.