Gotta love it when atheists decree to the rest of us what gods may or may not think, know, or do. Man didn't create gods, but neither did the gods create man.
Read some Qaballah, will you Java? Even the Chicken Qabalah by Don Milo, seriously.
That being said, Yahweh is a bit of an asshat, but so are plenty of other gods. Most of the gods of polytheistic cultures have nothing to do with "rules" ... think on the behavior of say, Zeus. He's all about marital honesty, monogamy, consensual sex
The gods are archetypes, being essential human characteristics or even universal facts made manifest (the Hindu trilogy of Shiva, Brahma and Vishnu is a good example).