added comments to the codebase