added plot_grids, which also builds fits files