pdf creation, reducing redundancy

Set up the analyse.rwty function to produce pdfs of output.  Also
removed redundant bits for gens.per.tree.