Added comments to signal calculation.