Reformat the code and add .gitignore

In order to begin to work on the project, I did that.