Code refactoring. Added .gitignore