Added medium refractive index in q-parameter formulas
Forgot to add the n=1 parameter to q2div()
Added q2R()