Add comments to Logic class.