Fixing plot, saving figs, added targetindexplot