examples: added examples for tutorial 7.
misc: some general fixups.