minor changes
New maxima funciton
Maxima plots
a better plot for the maximas