Partial implementation of main(). Add .gitignore.