Add gitignore and remove tmp directory.