added some code snippets and commentary that are sure to help