Fix several typos and update .gitignore.