Working export for all types of graphs. 1 save button per graph page.
Also removed some comments.