added comments to the slow parts of the codebase so they can be identified later