fixed up raytracing code and made it more modular, also fixed specular effect