code simplifications: added update function to ray class on MIC