Refactoring. Fixed all warnings in android studio that I understood. Stability of the app should be greatly increased.