slight improvements for shader with textures
bug fix: mixing uniform location and uniform index during call to glGetActiveUniform
do not use sampler if no associated texture has been loaded
minor refactoring
adding boolean to enable/disable usage of sampler