Replaced the //lights section with my own commented code.  I left in what was already there (commenting out what I was replacing)
Two functions, generateLight and normalizeLight are also included near the top.
generateLight just takes in float arrays to generate a BasicLight struct... this should really be done in the JSON parsing, so maybe it can be used for that.
normalizeLight takes an array of BasicLight structs, a number of light sources, and a brightness value (default is 1, but should be changeable in the JSON)