Some Identities for Means and Applications