Your homemade fudge sauce turned out grainy because you overheated the chocolate. That's why tossing your chocolate in some oil is a technique that home cooks don't know that professional pastry chefs and chefs know.