add .gitignore and modify composer.json