Plotting code
Removing special plotting functions
Better functions for example study