added comments and merged clean_email and str_to_array