Create enhanced result structure with error handling metadata
     
    
    Usage
    create_enhanced_result(results, function_name, success = TRUE)
 
    
    Arguments
- results
- Main analysis results 
- function_name
- Name of the analysis function 
- success
- Whether the analysis succeeded