mkapidocs.py: support return type and parameters on functions