add docs to show how to apply a function rowwise

Will help with #124.