Update documentation for functions.

All functions follow this new way of formatting the documentation.