Clarify documentation in spline module.
Redesign cost protocol.
Redesign dynamics protocol.