Fixed UI lag bug due to async task. Added a progress bar.
Added the functionality for exit button on MainActivity
[Stable] Lag in UI and Exit button functionality fix
[Stable] Merged asynctask bug and master