Cleaning clean_results() function, format code.
Improving api_is_valid_date() function