add .gitattributes file
Some code cleaning

Some code cleaning done. Still a lot of work