fixed lighting calculations. added Light class