added comments to if, else if and else

summarized what each were doing