Update tutorial.md

Corrected some grammar. Added in some code that was skipped over in explanation but in final tutorial source file. Left a TODO section as a place holder for author to write explanation for missing section of code.