Minor updates to tutorial code.