Refractions working
Some refraction fixes
Modified 'self-hit-correction'