Added comments to the createAICTable function.