Add class documentation for dynamics and cost.