fix function names in documentation