Added example2 and plot type choices. Not currently functional.