a more efficient implementation for ascii plot (flowgraph based) and other minor improvements