While in everyday language the word "comprise" may have both the meaning "include", "contain" or "comprehend" and "consist of", in drafting patent claims legal certainty normally requires it to be interpreted by the broader meaning "include", "contain" or "comprehend".
A claim directed to an apparatus/method/product "comprising" certain features is interpreted as meaning that it includes those features, but that it does not exclude the presence of other features, as long as they do not render the claim unworkable.
On the other hand, if the wording "consist of" is used, then no further features are present in the apparatus/method/product apart from the ones following said wording. In particular, if a claim for a chemical compound refers to it as "consisting of components A, B and C" by their proportions expressed in percentages, the presence of any additional component is excluded and therefore the percentages must should add up to 100% (see T 759/91 and T 711/90).
In the case of chemical compounds or compositions, the use of "consisting essentially of" or "comprising substantially" means that specific further components can be present, namely those not materially affecting the essential characteristics of the compound or composition. For any other apparatus/method/product these terms have the same meaning as "comprising".