code cleaning and gitignore