updated docs for functions.