Doc typed list and better sparse doc.

along the sum is apply -> along which the sum is applied.