Added gitignore
Refactoring