Improve documentation of private functions