Revert "updated function documentation"

This reverts commit 7c2783d751323e775b4390bffb2692b3e910a29a.
updated documentation using roxygen
moved interactive testing to examples in doc