How were atoms, molecules formed?

They are so complex with layers upon layers of interacting and revolving particles, almost like a solar system...BUt a solar system we know had to gather from years of gravity the amount of gas and rock to produce planets and such...But atoms/molecules were always as they were now? How are they created so complex?
13 answers 13