Add documentation comments for update_profiles()