added dim methods, improved stplot.