Add comments to tutorial code