Made MainActivity the main activity and added a class to quickly make a
generic error dialog.