updated .gitignore, write plots to file