update .gitignore
Split main function.