added code to sort uniforms based on offset
added print layout code to lights example
changed all Uniform block to use instance name

using an instance name is better practice.