Added documentation notes to functions