overall improvements, raytrace demo updated