Add function documentation.