added comments and code cleaning in some functions involved in the extrinsic/implicit approach for cohesive