Hmmm..... I'm pretty fond of something I've seen done in Quintus Prolog calle Literate Programming ('though it's not unique to them)-- the Prolog source is embedded in a TeX document (I'd prefer Word or WordPerfect), diagrams and all Mike