added .gitignore, format codes