Improvements to functions doc