Added functionailty to plot averaged or unaveraged plots and to select
height