Commutative cochain algebras