Added notes for each function