added .gitignore
refactored