What the Core API actually does in magento?