updated the functions documentation