I agree, the Bible was indeed written by man. And, yes, definitely to keep order. Many do need religion to be moral, and for those it's devinely powerful. Religion is not for everyone, however, it serves it's purpose in this imperfect world. Mankind is without a doubt flawed.