Did God give Moses visions of History and the Tabernacle on Mount Sinai? After Moses spent forty days and nights on the mountain, he gave the people the requirements God had told him to say to the Israelites: 

All Scripture is quoted from the King James translation unless otherwise noted.


  Exodus 19:3  And Moses went up unto God, and the LORD called unto him out of the mountain, saying, Thus shalt thou say to the house of Jacob, and tell the children of Israel; 


In the chapters between 19 and 25 are the laws God gave Moses, but in chapter 25,God in giving Moses instructions on building the Tabernacle said:


  Exodus 25:8 and 9  And let them make me a sanctuary; that I may dwell among them. According to all that I shew thee, after the pattern of the tabernacle, and the pattern of all the instruments thereof, even so shall ye make it. 


according to that Scripture God showed Moses some visions, and also;


  Exodus 25:40  And look that thou make them after their pattern, which was shewed thee in the mount. 


If I am reading the Scriptures correctly God not only told Moses what to tell the Israelites to do, but also gave him visions of exactly how the Tabernacle and its furnishings should be made.

Did God also give Moses visions of History which he then recorded in Genesis?
Most definitely. The passage makes it clear that the earthly sanctuary was modeled after another Sanctuary, the True Sanctuary made by the LORD Himself. This is what was shown to Moses in vision.


  Now this is the main point of the things we are saying: We have such a
  High Priest, who is seated at the right hand of the throne of the
  Majesty in the heavens, a Minister of the sanctuary and of the true
  tabernacle which the Lord erected, and not man.
  
  Hebrews 8:1,2
  
  For if He were on earth, He would not be a priest, since there are
  priests who offer the gifts according to the law; 5 who serve the copy
  and shadow of the heavenly things, as Moses was divinely instructed
  when he was about to make the tabernacle. For He said, “See that you
  make all things according to the pattern shown you on the
  mountain.”[a] 6 But now He has obtained a more excellent ministry,
  inasmuch as He is also Mediator of a better covenant, which was
  established on better promises.
  
  Hebrews 8:4,6


Divine inspiration does not work in the way that God dictates word for word, as it is known that different authors had different writing styles. Nevertheless, they were all inspired by the Holy Spirit. Because Moses did not live in that time, a vision must have been shown to him in order for him to be able to write the Genesis account in such detail. Some also think that Moses was the author of the Book of Job.