Lighting library and a minior bug fix with entity manager removal