Updated code examples with comments.

I updated a few things that will explain the code a little more to beginners. Formatting has been updated for the complete code example so that it is easier to read. I also added in a specific instruction to rename a downloaded file so that the code example does not need to be changed.