Refactored the Downloads View Controller class (removed commented-out code and split up into smaller methods).