Add a function to extract documentation from a function