God didn't do any of those things. Except for the killing people one - he definitely did that. Humans did all of those, sometimes claiming God's command. But the point is that God's Good is greater than humans' good. If God tells you to stone someone to death, there's a Good reason for it even if there is not a good reason. And you don't know God's reasons, because God is ineffable or something. Mysterious ways et cetera.
I hope it's clear here that I'm presenting the argument, and not that I believe any of this ◊◊◊◊ myself. That would make me a terrible person. But I would also like to point out that I am clearly presenting the argument in declarative statements, and not using the Socratic method, thus demonstrating
@theprestige's thesis, which is why it is still on-topic.