Now to be fair, there's also examples of God (as portrayed by the writers) being vindictive and harsh. I don't have great answers for that, but I do wonder how much it is seeing through their perspective of the situation and how much it was God. (I obviously come at this as a believer).
As to being the only moral text... I certainly hope it's not, because we've learned a lot since then, and I hope what's considered truth can expand beyond one book.
EDIT: not to dismiss your points, just to say that some of us view it in a more nuanced way.