Reordered methods so blog post will make more sense, and fixed some typos.