stylistic changes and an else statement to handle invalid tweets