The first alternative is correct (A).
Although this sentence is understandable, the fact of having many periods connected by commas disrupts a better literal experience for the reader.
When constructing a paragraph, the ideal is not to make extremely long periods, as in this case, where the whole paragraph contemplates only one period. To give a better cohesion to the text, the writer could divide it into smaller sentences and use connectives between them.