split plot functions into seperate files and finish History object
fixing conflicts arising from moving plots.py around