Doc changes to functions.py

Some documentation changes