Removed debugging print statements, the large commented out blocks of code and commented out second_run and second_titles as they were not being used