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

The miller stood as if struck by lightning he saw very well that the cunning nix had been aware of it and had cheated him
The miller stood as if struck by lightning; he saw very well that the cunning nix had been aware of it, and had cheated him.