Added comments to API.php