* Added code block termination comments
* Refactored code formatting