added normalize function and an example on how to properly reduce flats, and lights