Minor updates to analysis chapter Processing code