Tidy code, create .gitignore file