Update previous code examples
Update previous code examples

Some of the previous examples which I added weren't fully correct. This
was because of my understanding of how everything worked at the time,
which I've since expanded on.

refinery29/piston,refinery29/piston