Cleaned up MainActivity methods and tested the application