Cleaned up main activity code. Added error handling. Also added dev options so you can select range from main page.