Add comments to each function of the source code to explain what it does.
Add comments to each function of the source code to explain what it does.