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

Of course Thales could have used these geometrical methods for solving practical problems having merely observed the properties and having no appreciation of what it means to prove a geometrical theorem
Of course Thales could have used these geometrical methods for solving practical problems, having merely observed the properties and having no appreciation of what it means to prove a geometrical theorem.