Now tidies up after itself.
Major modifications to do a rep on a directory -- creates a book with
each example as a chapter.