Updated .gitignore
Updated to latest version of api.php