edit plotPDF function to allow for passing a list of plots to be printed.