Added comments to end of code.