Added comments to all of the if statement.