prep_kfuncs_results function

Preparing results for K functions