adding .gitignore
refactored code for Android Studio