Update tutorial; fix up code listings.
Update gitignore files.