Updated/Fixed SimpleCommand and related classes. Also fixed
StackOverflow error in PlotListener class.