changed gitignore, changes api.php