Adding the cheese at too high of a temperature can cause the cheese to have a grainy texture. To prevent this, use low heat or turn it off completely to add the cheese.  Stir constantly until the cheese is melted.