changed the way the legend of graph A is drawn - now plotted by legend() and with characters used in plot on legend.
changed the width of the ploting region - for smaller graphs it now contains the legend
added checking if all test results are valid