Add some documentation for exposed functions.