edited comments for if-else statements