Add .gitignore
Reformet dot generation code