Fixed some typos.
Maintained sample's comments.