added batch processes for testing the algorithm.
also added plotters for mode vectors.
jm