create .gitignore for artifacts; some refactoring