Added code to automatically get attrib and uniform locations