Added comments on how the metrics code operates