Addition of more comments to clarify code sections