What is the version of the following sentence with correct punctuation?

A number of such rebirths will produce different stars which can explain that different types of stars exist
A number of such 'rebirths' will produce different stars, which can explain that different types of stars exist.