Refactored and commented clean_soup