Updated notes to explain array values and how they are referenced in the functions.