Guidance h saturations

Improve guidance reference computation (h_ref)
Split files to have normal functions in C files (h_ref and v_ref)