Green Tea Press: Allen B. Downey's "Little Book of Semaphores"
Read chapter 2 on pages 7-9 and chapter 4 on pages 61-120.
Click https://web.archive.org/web/20151204174243/http://greenteapress.com/semaphores/downey08semaphores.pdf link to open resource.