Added test plot routine. Turned m into array for plotting reasons. Correct?