added comments to if, else, and else if