Update function definitions in documentation