Small Code Corrections

Hi I started using this tutorials and found some mistakes in the code.  Here are a few corrections.