Shader debugging

very useful error messages are printed if there are problems.