Changes to the code formatting.
Improved the comments.