Added comments to if and else statements

Added comments to if and else statements