more simplifications to addCommTerms
removed redundancy in sameCoef definition