print proper uniform variable locations when GLSL programs load; other code cleanup