restructured layout of panel using percentages instead of absolute
widths. Added axis labelling and legend