How was the Book of Genesis written?

The Book of Genesis claims to record the creation of the universe and the early history of mankind. Who wrote it, and where did the writer get all of his information - some of which is about events before the first human was created? If God dictated the text or inspired it, why does the bible not record the fact?
12 answers 12