Corrected location of ambient light calculation; fixed up several areas where calculation was now wrong.