purity-gen2.nb complete. Changed structure from purity-gen1 to take advantage of Mathematica's DownValues