Fixed a bug where if a triangle was entirely in one plane at the max side
of the meshes bounds it would not be added to the kdtree.

vector caught with clang static analysis tool.

Added some lighting changes.