The key to a nice smooth frosting is making sure that the ingredients are at room temperature. Cold cream cheese or butter will just make lumpy frosting. I also like to use the whisk attachment on my mixer; it may take a little bit longer, but it really helps break up any little unblended bits in the mixture.