Added api.php file for usage examples