Tutorial fixes

I encountered some errors when trying the tutorial, so I fixed them. Hope they're according to your standards.