Some other useful points:
1. Transactions can be secured using public-key encryption. This way Bob can't spend Alice's coins (unless he has her key pair).
2. Wallets are typically a collection of public/private key pairs, where each pair is a ledger address/password combo.
Also, I could be wrong, but it looks like the example code will accept longer peer chains even if they're completely different.
Great article!