What we need to take into consideration if we want to understand what the creation stories were trying to convey is to whom they were written. And they were written to a people who had just left Egypt, a nation with a state religion which included a pantheon of gods and goddesses. It also had a creation story, but in the egyptian story the creation concentrated on the coming into existence of their gods and goddesses:
www.theologywebsite.com/etext/egypt/creation.shtml
Note that in this creation story the gods and goddesses created other gods and goddesses for the first five days of creation; it was only on the sixth day that mankind and all the other species of animals were created almost as an afterthought. This creation story would have been well-known by the people whom Moses was in charge of, as religious beliefs and festivals commemorating various gods and goddesses were 'required reading' in Egypt.
If you have ever seen the heiroglyphs depicting the egyptian gods and goddesses, it soon becomes apparent that they are all either the celestial bodies, animals, or combinations of animals. In the egyptian creation story one of them is even identified as the sky itself. So the sun, moon, and stars were to be seen as gods, goddesses, or their garments (Queen Nut), and all the animals that the people saw around them were to be seen as representative of one of the other gods or goddesses (there were over 40 in their pantheon).
When we put the first creation story (Genesis 1:-2:3) next to the egyptian creation epic we can see the process whereby its author methodically stripped every egyptian god and goddess of their existence. The sun, moon, and stars were not gods and goddesses; they were merely objects placed in the heavens to give us light. The sea and land animals who occupied that region alongside the people were merely other species of animals rather than representations of any god or goddess. It was a demythologization of the creation story they already knew. When the reader got to Genesis 2:3, the only being that he could still identify as having divine attributes was also a being who was invisible, so no idol could ever be made of him.
In the second creation story (Genesis 2:4-25), the creation of mankind and the creation of the other animals is separated. In the original egyptian creation story they were all created together and then 'dumped' onto this planet. But the second creation story of Genesis identifies man's creation as being unique. Only he could converse with God and have God converse with him. Only he had the authority to name all the other species of animals, seen as a symbol of power over those animals. Only man had a special garden created for him where he could tend it and live comfortably. And only he, and the companion that God made for him, could lose their innocence by deliberately disobeying God and obtaining the knowledge of good and evil.
If people try to identify the creation stories as a scientific fact, they're missing the purpose for their having been written. It was never to be seen as a 'test tube analysis' of how the earth, and everything on the earth, came into existence. Instead, It was a rebuttal and a demythologization of what the people had already been taught as part of a society that worshipped a pantheon of gods and goddesses.