more save_format switches
added function for grid calculation.
refactored plot_tenten() for new subplotting usage. code cleanup.