Add gitignore and remove generated and unnecessary files.