added notes for the math and the output conditional statements