Removed unused variables. Added script integration for light source class.