Fix function signatures in documentation