* Refactoring without functionality changes
 * Documentation updates
 * Added code block termination comments