Added blending to support multiple lights
Minor changes to remove warnings