Fixing bug in shader creation code, adding extra text for error messages