added comments to if, else if and else.(revised)

fixed old comments