added notes about variables and first set of if statements inside of function