extract_params function

Extract parameter names