added doc at top
added code to prevent show and savefig from showing the same figure twice if no changes were made to the figure
added version to pdf document properties so I can tell what generated the document