Added notes to functions