added notes to if else