added library to display stats to stdout
added SetPipeOpen to stdout and terminal
configurable viewer: curseslike or stdout