Fixed a critical bug that crashed the app

Updated .gitignore