cleaned code, fixed error-code 4 bug, changed onBackPressed in MainActivity