fixed typos and indent issues
Added option to to force textures and/or colours to be interpreted as linear_rgb