Final code/tutorial mismatches

Some small typos that are in the final code included in the package, but not in the tutorial itself. They result in breakage of the tutorial.