Updated gitignore,  completed flatten