One tip is to make sure you sit your butter out ahead of time so that it may soften. You want the butter to be soft but not melting. It should still be cool to the touch. Also, if too thick or grainy, try adding 1 teaspoon of liquid to the buttercream at a time to thin it out.  If too thin, try adding 1/4 cup of powdered sugar at a time