edits to first 3 chapters:references to figures and activecode and listings