Add method documentation for dynamics and cost.